<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<link href="css/loginfirst.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="resources/js/jquery-3.4.1.min.js"></script>
<script type="text/javascript">
$(function(){
	$("#form1").submit(function(){
		
		var txt_account=$("#txt_account").val();
		var txt_password=$("#txt_password").val();
		if(txt_account.length == 0){
			$("#errorid").html('请输入账号和密码！');
			return false;
		}else{
			$("#errorid").html('');
		}
		if(txt_password.length == 0){
			$("#errorpw").html('请输入密码！');
			return false;
		}else{
			$("#errorpw").html('');
		}
	});
});
</script>

</head>
<body>
<div id="one">

<svg width="100%" height="100">
    <text text-anchor="middle" x="50%" y="50%" class="text text-1">
      <a href=""> 最牛逼的交易品台</a>
    </text>
    <text text-anchor="middle" x="50%" y="50%" class="text text-2">
         <a href=""> 最牛逼的交易品台</a>
    </text>
    <text text-anchor="middle" x="50%" y="50%" class="text text-3">
       <a href=""> 最牛逼的交易品台</a>
    </text>
    <text text-anchor="middle" x="50%" y="50%" class="text text-4">
         <a href=""> 最牛逼的交易品台</a>
    </text>
</svg> 
</div>
<div id="a" style="background-image: url(picture/six.jpg)">

<div id="b">
<h1 style="margin-left:100px">用户登录</h1>

<form id="form1"  runat="server" method="get" onsubmit="return checkForm()"> 
 <div id="account">  
        <input id="txt_account" name="txt_account" value="" style="border-radius:2px;padding:5px;height:20px;width:160px;background-image: url(picture/two.png);background-repeat:no-repeat;background-position:left center;padding-left:41px;" runat="server" type="text" placeholder="手机号码" />  
        </div> 
        <div id="errorid" style="color:#6C6C6C;; font-size:13px; text-align:center; display:inline;"></div>
         <br/><br/>
      
        <div id="form_password" >  
        <input id="txt_password" name="txt_password" value="" style="border-radius:2px;width:160px;padding:5px;height:20px;background-image: url(picture/three.png);background-repeat:no-repeat;background-position:left center;padding-left:41px;" runat="server" type="password" placeholder="输入密码" />  
        </div>  
       <div id="errorpw" style="color:#6C6C6C;; font-size:13px; text-align:center; display:inline;"></div><br/>
        <div id="login_click">  
  
        <button id="btlogin" name="btlogin" type="submit">登录</button>
        </div>

</form>

</div>
</div>
</body>
</html>